<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>邮宝</title>
<link href="<%=path%>/css/bootstrap.min.css" rel="stylesheet" media="screen">
	
</head>
<body>
<div class="mydiv">
	<div class="container">
		<div class="row">
          <form action="#" method="post" role="form">
          <h2><img src="<%=path%>/images/logo.png" class="img-responsive img-center"></h2>
		  <div style="margin: 20px">
				<p class="text-muted" >运单号码：<font id="parcelNum"></font></p>
				<p class="text-muted" >快递名称：<font id="expCompanyName"></font></p>
				<p class="text-muted" >取件码：<font id="getCode"></font></p>
				<p class="text-muted" >存放时间：<font id="storeTime"></font></p>
				<p class="text-muted" >存放地址：<font id="devBranchAddr"></font></p>
		   </div>
		   <div>
		   <button type="button" id="openLock" class="btn btn-danger btn-block openLock" onclick="javascript:openBox()">开箱取件</button></div>
          </form>
        </div>
	</div>
	</div>
<script type="text/javascript">
	var jsonStr='${requestScope.jsonData}';
	var jsonData=eval('(' + jsonStr + ')');
	var terminalName=jsonData.terminalName;
	document.getElementById("parcelNum").innerText=jsonData.parcelNum;
	document.getElementById("expCompanyName").innerText=jsonData.expCompanyName;
	document.getElementById("getCode").innerText=jsonData.getCode;
	document.getElementById("storeTime").innerText=jsonData.storeTime;
	document.getElementById("devBranchAddr").innerText=jsonData.devBranchAddr;
	function openBox(){
		if (confirm("确认取件?")){ 
			location.href='${requestScope.href}?sign=${requestScope.sign}&openId=${requestScope.openId}&jsonData=${requestScope.jsonData}';
	 	} 
	} 
</script>	
</body>
</html>